package com.peking.donations.web.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * Created by wyz on 16/4/27.
 */
@Controller
public class IndexController {


    /**
     * 首页
     * 
     * @return
     */
    @RequestMapping(name = "index", value = "/", method = RequestMethod.GET)
    public String forwardIndex() {
        return "index";
    }

    /**
     * 分享页面
     *
     * @param modelMap
     * @return
     */
    @RequestMapping(name = "error", value = "/error", method = RequestMethod.GET)
    public String error(ModelMap modelMap) {
        return "error";
    }

}
